import { defineBuildConfig } from "unbuild";

export default defineBuildConfig({
  entries: ["index"],
  externals: ["vite"],
  clean: true,

  // Change outDir, default is 'dist'
  outDir: "dist",

  // Generates .d.ts declaration file
  declaration: "compatible",
  rollup: {
    emitCJS: true,
  },
});
